import Vue from 'vue'
import Vuex from 'vuex'
 import vuexPersist from "vuex-persist";
Vue.use(Vuex)

export default new Vuex.Store({
   state: {
        list: [],
        list1:[]
      },
      mutations: {
        ON_change(state, val) {
          state.list = val
        },
     ON_change2(state, val) {
            state.list1 = val
          },
       ON_change3(state, i) {
        state.list1.splice(i,1)
            },
      },

  actions: {
  },
  modules: {
  },
   plugins: [
            new vuexPersist({
          storage: window.localStorage,
         }).plugin,
     ],
})
